package com.sc.nft.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
@Data
public class GiveRequiredIntegralVO {
    @ApiModelProperty("所需积分")
    private String needIntegral;

    @ApiModelProperty("拥有积分")
    private String haveIntegral;

    @ApiModelProperty("转增说明")
    private String transferRules;

    public void setNeedIntegral(BigDecimal needIntegral){
        this.needIntegral=needIntegral.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }

    public void setHaveIntegral(BigDecimal haveIntegral){
        this.haveIntegral=haveIntegral.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
